package com.shangrila.common.io.excel;

import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
/**
 * Excel表单
 * @author kalman03
 *
 */
public class Excel {

	/**所有的行*/
	private final List<ExcelRow> rows;
	
	public Excel(List<ExcelRow> rows) {
		this.rows = rows;
	}
	
	public ExcelRow getARow(int index){
		return rows.get(index);
	}
	
	public List<ExcelRow> getRows() {
		return rows;
	}

	@Override
	public String toString() {
		return "Excel [rows=" + ToStringBuilder.reflectionToString(rows) + "]";
	}
}
